#include "../status_task.h"
#include "../../driver/analog.h"
#include "../../driver/pipe_line/drop_cup_motor.h"
#include "../../driver/pipe_line/pipe_line_motor.h"
#include "../../driver/pipe_line/sensor.h"
#include "../../service/salve_conn.h"

namespace task {

using namespace service;
using namespace driver;

static constexpr uint16_t APP_VERSION = 0x02;

void StatusTask::run() {

    for (;;) {
        salveConn->status_notify(
            APP_VERSION,
            sensor->status(),
            analog->change_value()
        );
        osDelay(500);
    }
}

}
